from view.widget.qq9_messagebox import QQ9MessageBox


__all__ = ["message_box"]


def message_box(title: str="", width: int=400, height: int=300):

    def wrapper(method):
        def inner(self, *args, **kwargs):
            w = QQ9MessageBox(title=title, width=width, height=height)
            method(self, w=w)
            return None
        return inner
    return wrapper